package rentalstore;

/**
 * RegularPrice
 *
 * @author Burgess Li
 * @createDate 2018/08/27 23:22
 */
public class RegularPrice extends Price {

    int getPriceCode() {
        return Movie.REGULAR;
    }

    double computeAmount(int dayRented) {
        double amount = 2;
        if(dayRented > 2){
            amount += (dayRented - 2) * 1.5;
        }
        return amount;
    }

}
